import store from "@/redux"
import { Outlet } from "react-router-dom";

function Home() {
    const updateCount = () => {
        store.dispatch({ type: "UPDATE_NAME", name: "hello world111111!" });
    }

    return (
        <>
            <button onClick={updateCount}>
                修改name
            </button>
            <Outlet/>
        </>
    )
}

export default Home